

var idElemento;
function SetUrl(x) {
	document.getElementById(idElemento).value = x;
}

function abrirBrowse (){
	var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes" ;
	try	{
		ScreenWidth	= screen.width ;
		ScreenHeight	= screen.height ;
	}
	catch (e)	{
		ScreenWidth	= 800 ;
		ScreenHeight	= 600 ;
	}
	
	width  = ScreenWidth * 0.7 ;	// 70% ;
	height = ScreenHeight * 0.7 ;	// 70% ;
	var iLeft = ( ScreenWidth  - width ) / 2 ;
	var iTop  = ( ScreenHeight - height ) / 2 ;
	
	sOptions += ",width=" + width;
	sOptions += ",height=" + height;
	sOptions += ",left=" + iLeft;
	sOptions += ",top=" + iTop;
	var url = '/FCKeditor/editor/filemanager/browser/default/browser.htm?Type=Image&Connector=' + encodeURIComponent( '/commands.php.html' ) ;
	window.open( url, 'FCKBrowseWindow', sOptions ) ;
}	